6.1. MSYS2¶
MSYS2 is a Linux (Bash) terminal emulator for Windows. It is NOT a linux running inside windows, but simply a set of Linux tools, like the Bash command line compile for Windows using the MinGW Windows Posix Compiler.
MSYS2 features a package management system to install Unix C software compiled for windows, and allows working under Windows in the same way as under Linux.
6.1.1. Installting MSYS2¶
TO install MSYS2, follow the instructions on the Project’s Homepage
6.1.3. What to do?¶
To use MSYS2, you have to learn how to use the Linux Bash Command line, if you don’t already.
6.1.4. Adding the extra package sources¶
We have prepared a few software packages for MSYS, which you can install using the Package manager.
These packages are not available through the default MSYS2 repositories, you have to add some special ones.
6.1.4.1. Add the extra repository¶
First, Install the nano text editor:
MINGW64 ~ $ pacman -S nano
Open the File /etc/pacman.conf :
MINGW64 ~ $ nano /etc/pacman.conf
Add the following lines at the end of the file:
Save the file by pressing CTRL+X, then press Y to accept the changes.
6.1.4.2. Update the Package list¶
Now run the command to update the list of available packages:
MINGW64 ~ $ pacman -Syy